<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>
<TITLE>Txt2tags User Guide</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
<LINK REL="Start" HREF="index.html">
<LINK REL="Contents" HREF="index.html">
<LINK REL="Prev" HREF="style.html">
<LINK REL="Next" HREF="DetailsforPreProcandPostProcFilters.html">
<STYLE TYPE="text/css"><!--
BODY { font-family: serif }
H1 { font-family: sans-serif }
H2 { font-family: sans-serif }
H3 { font-family: sans-serif }
H4 { font-family: sans-serif }
H5 { font-family: sans-serif }
H6 { font-family: sans-serif }
SUB { font-size: smaller }
SUP { font-size: smaller }
PRE { font-family: monospace }
--></STYLE>
<LINK REL="stylesheet" TYPE="text/css" HREF="userguide.css"></HEAD>
<BODY>
<A HREF="index.html">Contents</A>
<A HREF="style.html">Previous</A>
<A HREF="DetailsforPreProcandPostProcFilters.html">Next</A>
<HR NOSHADE>

<H2><A NAME="8_7">Defining a Setting for a Specific Target</A></H2>
<P> All the settings (except %!target) can be glued with a specific
 target using the <CODE>%!key(target): value</CODE> syntax. This way
 user can define different config for different targets.</P>
<P> This is specially useful in the pre/postproc filters, but is
 applicable to all settings. For example, defining different styles for
 HTML and LaTeX:</P>
<PRE>
%!style(html): fancy.css
%!style(tex) : amssymb
</PRE>
<P> For the options setting it's very useful to adjust the converted
 document:</P>
<PRE>
%!target: sgml
%!options(sgml): --toc
%!options(html): --style foo.css
%!options(txt ): --toc-only --toc-level 2
</PRE>
<P> In this example, the default target is Sgml and it will use TOC. If
 the user run <CODE>txt2tags -t html file.t2t</CODE>, only the HTML
 options will be used, so the converted file will use &quot;foo.css&quot; style
 file and will have no TOC.</P>
 <A NAME="filters-details"></A><HR NOSHADE>
<A HREF="index.html">Contents</A>
<A HREF="style.html">Previous</A>
<A HREF="DetailsforPreProcandPostProcFilters.html">Next</A>
</BODY>
</HTML>
